package obj.day1;

/**
 * @author げっしょく
 * @date 2021/7/15
 */
public class Manager extends Employee{
    private int bonus;

    public Manager(String name, int age, int menoy, int bonus) {
        super(name, age, menoy);
        this.bonus = bonus;
    }

    public Manager() {
    }

    @Override
    public void work() {
        System.out.println("每天安排工作");
        System.out.println("与上级汇报工作情况");
    }
    public String toString(){
        return "姓名"+super.getName()+"年龄"+super.getAge()+"工资"+super.getMenoy()+"奖金"+bonus;
    }
}
